package com.zbkj.client;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import org.springframework.cloud.openfeign.EnableFeignClients;

//@SpringBootApplication
@EnableAsync //开启异步调用
@EnableScheduling //开启定时任务
@EnableSwagger2
@Configuration
@EnableTransactionManagement
@EnableFeignClients
//@SpringBootApplication(exclude = DataSourceAutoConfiguration.class) //去掉数据源
@SpringBootApplication //去掉数据源
@ComponentScan(basePackages = {"com.zbkj", "com.zbkj.client"})
@MapperScan(basePackages = {"com.zbkj.**.dao"})
public class CrmebClientApplication {

    public static void main(String[] args) {
        SpringApplication.run(CrmebClientApplication.class, args);
    }

}
